package info.rodinia.tokenmaker;

/**
 * RitualCompendiumEntry models a ritual entry from the wizards of the coast DDi Compendium
 * It deals with displaying the ritual in a nice fashion.
 * 
 * @author Blakey, Summer 2010
 */
public class RitualCompendiumEntry extends CompendiumEntry {

    Ritual myRitual;
    
    public RitualCompendiumEntry(Ritual ritual) {
	super("http://www.wizards.com/dndinsider/compendium/ritual.aspx?id="
		+ ritual.getId());
	myRitual = ritual;
    }

    @Override
    protected void formatHTML() {
	super.formatHTML();	// make sure we do the generic stuff

	// add full path to the images
	myHTML = myHTML.replace("<img src=\"images/","<img src=\"http://www.wizards.com/dndinsider/compendium/images/");
	
	// add some formatting codes
	myHTML = myHTML
		.replace(
			"class=\"player\"",
			"style=\"font:aerial;font-size:1.35em;font-weight: bold;line-height:2;padding-left:15px;margin:0;color:white;background: #1d3d5e;\" class=\"player\"");

    }        
}
